home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / lib / assert / assert.c < prev   
C/C++ Source or Header  |  1997-09-09  |  396b  |  26 lines

  1.  
  2. /*
  3.  *  ASSERT.C
  4.  *
  5.  *
  6.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  7.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  8.  *    DICE-LICENSE.TXT.
  9.  *
  10.  */
  11.  
  12. #include <stdio.h>
  13. #include <stdlib.h>
  14. #include <assert.h>
  15.  
  16. void
  17. __FailedAssert(file, line)
  18. char *file;
  19. int line;
  20. {
  21.     fprintf(stderr, "Assertion Failed %s line %d\n", file, line);
  22.     abort();
  23. }
  24.  
  25.  
  26.